/**COPYRIGHT(C) 2008. Natasha Khuri. All Rights Reserved.
 * A class that tests the Sentence class
 * 
 * @author Natasha Khuri
 * @version 1.01 2008-10-26
 *
 */
public class SentenceTester
{
   public static void main(String[] args)
   {
     Sentence mySentence = new Sentence("And then there were none left");
     
     int numWords = mySentence.countWords();
     boolean expect = true;
     boolean actual = numWords == 6;
     
     System.out.println("test1: " + (expect == actual));

     String expected = "tfel enon erew ereht neht dnA";
     expect = true;
     actual = mySentence.reverse().equals(expected);
     System.out.println("test2: " + (expect == actual));

     expected = "left none were there then And";
     actual = mySentence.reverseWords().equals(expected);
     System.out.println("test3: " + (expect == actual));
     
     Sentence second = new Sentence("And then there were none left");
     actual = mySentence.equals(second);
     System.out.println("test4: " + (expect == actual));
     
     second = new Sentence("Hello");
     expect = false;
     actual = mySentence.equals(second);
     System.out.println("test5: " + (expect == actual));
     
     
   }

}
